package com.lipeng.service.impl;

import com.lipeng.bean.Order;
import com.lipeng.mapper.OrderMapper;
import com.lipeng.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/3/8.
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Order> findAllOrder() {
        return orderMapper.findAllOrder();
    }

    @Override
    public Order selectOrderById(Integer oid) {
        return orderMapper.selectByPrimaryKey(oid);
    }

    @Override
    public List<Order> selectOrderByUid(Integer uid) {
        return orderMapper.selectOrderByUid(uid);
    }
}
